//
//  WeekCSVParser.h
//  RegBars
//
//  Created by Huu Nhat on 9/25/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Week.h"

@protocol WeekCSVParserDelegate <NSObject>

- (void)didEndParseCSVFile:(NSMutableArray*) weekArray withUrl:(NSString*) urlString;
- (void)didNotRecieveCSVData;

@end

@interface WeekCSVParser : NSObject {
	NSObject <WeekCSVParserDelegate> *delegate;
	Week *currentWeek;
    NSString *urlString;
}

@property (nonatomic, assign) NSObject <WeekCSVParserDelegate> *delegate;
@property (nonatomic, retain) Week *currentWeek;
@property (nonatomic, retain) NSString *urlString;

- (void) getWeekFromUrl:(NSString*) url withDelegate:(id)theDelegate storeInArray:(NSMutableArray*) array; 

@end
